<template>
  <div>
    <!-- 头部导航栏 -->
    <van-nav-bar :title="title" class="navBar">
      <template #left>
        <van-icon name="arrow-left" class="leftArrow" @click="$router.back()" />
      </template>
    </van-nav-bar>
    <!-- /头部导航栏 -->
  </div>
</template>

<script>
export default {
  name: '',
  components: {},
  props: {
    title: {
      type: String,
      default: '头部导航栏',
      required: true
    }
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
}
</script>

<style scoped lang="less">
:deep(.van-nav-bar__content) {
  background-color: #21b97a;
  .leftArrow,
  .van-nav-bar__title {
    color: #fff;
  }
}
</style>
